package com.rt.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rt.common.annotation.Excel;
import com.rt.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 难易度调整日志（明细）对象 rt_difficulty_log_detail
 * 
 * @author Yg
 * @date 2022-04-21
 */
public class RtDifficultyLogDetail
{
    private static final long serialVersionUID = 1L;

    /** 主表id,关联难易度调整_日志id */
    private Long id;

    /** 主表id,关联难易度调整_日志id */
//    @Excel(name = "主表id,关联难易度调整_日志id")
    private Long mainId;

    /** 试题id */
    @Excel(name = "试题id")
    private String questionId;

    /** 修改前难易度，1-5 */
    @Excel(name = "修改前",readConverterExp = "1=0,2=0.1,3=0.2,4=0.3,5=0.4,6=0.5,7=0.6,8=0.7,9=0.8,10=0.9,11=1.0")
    private Integer difficultyBefore;

//    /** 修改前难易度*/
//    @Excel(name = "修改前难易度")
//    private String forward;

//    /** 修改后难易度，1-5 */
//    @Excel(name = "修改后难易度")
//    private String back;

    /** 修改后难易度，1-5 */
    @Excel(name = "修改后",readConverterExp = "1=0,2=0.1,3=0.2,4=0.3,5=0.4,6=0.5,7=0.6,8=0.7,9=0.8,10=0.9,11=1.0")
    private Integer difficultyAfter;

    /** 最新作答错误率，0-100 */
    @Excel(name = "最新作答错误率")
    private Integer newErrorRate;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updateOperator;

    /** 更新时间 */
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Override
    public String toString() {
        return "RtDifficultyLogDetail{" +
                "id=" + id +
                ", mainId=" + mainId +
                ", questionId='" + questionId + '\'' +
                ", difficultyBefore=" + difficultyBefore +
                ", difficultyAfter=" + difficultyAfter +
                ", newErrorRate=" + newErrorRate +
                ", updateOperator='" + updateOperator + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMainId() {
        return mainId;
    }

    public void setMainId(Long mainId) {
        this.mainId = mainId;
    }

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public Integer getDifficultyBefore() {
        return difficultyBefore;
    }

    public void setDifficultyBefore(Integer difficultyBefore) {
        this.difficultyBefore = difficultyBefore;
    }

    public Integer getDifficultyAfter() {
        return difficultyAfter;
    }

    public void setDifficultyAfter(Integer difficultyAfter) {
        this.difficultyAfter = difficultyAfter;
    }

    public Integer getNewErrorRate() {
        return newErrorRate;
    }

    public void setNewErrorRate(Integer newErrorRate) {
        this.newErrorRate = newErrorRate;
    }

    public String getUpdateOperator() {
        return updateOperator;
    }

    public void setUpdateOperator(String updateOperator) {
        this.updateOperator = updateOperator;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
